package com.quantdo.qtm.mysql.pojo.model;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class MysqlStatusPointDo {

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date currTime;
    private Integer intervalSecond;

    private Integer qps;
    private Integer tps;
    // 查询量
    private Integer selectQty;
    private Integer insertQty;
    private Integer updateQty;
    private Integer deleteQty;
    private Integer writeQty;

    // 连接数
    private Integer threadsConnected;
    private Integer threadsRunning;

    private Integer slowQueries;
    // 流量
    private Integer bytesSent;
    private Integer bytesReceived;
    // 引擎缓冲池使用率
    private Integer innodbBufferPoolUsedRate;
    private Integer keyBlocksUsedRate;

    public Date getCurrTime() {
        return currTime;
    }
    public String getFormatTime() {
        return new SimpleDateFormat("yyyy-MM-dd.HH:mm").format(currTime);
    }

    public void setCurrTime(Date currTime) {
        this.currTime = currTime;
    }

    public Integer getIntervalSecond() {
        return intervalSecond;
    }

    public void setIntervalSecond(Integer intervalSecond) {
        this.intervalSecond = intervalSecond;
    }

    public Integer getQps() {
        return qps;
    }

    public void setQps(Integer qps) {
        this.qps = qps;
    }

    public Integer getTps() {
        return tps;
    }

    public void setTps(Integer tps) {
        this.tps = tps;
    }

    public Integer getSelectQty() {
        return selectQty;
    }

    public void setSelectQty(Integer selectQty) {
        this.selectQty = selectQty;
    }

    public Integer getInsertQty() {
        return insertQty;
    }

    public void setInsertQty(Integer insertQty) {
        this.insertQty = insertQty;
    }

    public Integer getUpdateQty() {
        return updateQty;
    }

    public void setUpdateQty(Integer updateQty) {
        this.updateQty = updateQty;
    }

    public Integer getDeleteQty() {
        return deleteQty;
    }

    public void setDeleteQty(Integer deleteQty) {
        this.deleteQty = deleteQty;
    }

    public Integer getWriteQty() {
        return writeQty;
    }

    public void setWriteQty(Integer writeQty) {
        this.writeQty = writeQty;
    }

    public Integer getThreadsConnected() {
        return threadsConnected;
    }

    public void setThreadsConnected(Integer threadsConnected) {
        this.threadsConnected = threadsConnected;
    }

    public Integer getThreadsRunning() {
        return threadsRunning;
    }

    public void setThreadsRunning(Integer threadsRunning) {
        this.threadsRunning = threadsRunning;
    }

    public Integer getSlowQueries() {
        return slowQueries;
    }

    public void setSlowQueries(Integer slowQueries) {
        this.slowQueries = slowQueries;
    }

    public Integer getBytesSent() {
        return bytesSent;
    }

    public void setBytesSent(Integer bytesSent) {
        this.bytesSent = bytesSent;
    }

    public Integer getBytesReceived() {
        return bytesReceived;
    }

    public void setBytesReceived(Integer bytesReceived) {
        this.bytesReceived = bytesReceived;
    }

    public Integer getInnodbBufferPoolUsedRate() {
        return innodbBufferPoolUsedRate;
    }

    public void setInnodbBufferPoolUsedRate(Integer innodbBufferPoolUsedRate) {
        this.innodbBufferPoolUsedRate = innodbBufferPoolUsedRate;
    }

    public Integer getKeyBlocksUsedRate() {
        return keyBlocksUsedRate;
    }

    public void setKeyBlocksUsedRate(Integer keyBlocksUsedRate) {
        this.keyBlocksUsedRate = keyBlocksUsedRate;
    }

}
